package edu.pku.sei.mte.constants;

import edu.pku.sei.mte.mtemodel.model.MClass;

public class MDAConstant {
	public static final Object ERROR_VALUE = new Object(){
		public String toString(){
			return "ERROR";
		}
	};
	public static final Object UNINITIATED_VALUE = new Object(){
		public String toString(){
			return "UNINITIATED";
		}
	};
	public static final Object TRUE_VALUE = new Object(){
		public String toString(){
			return "TRUE";
		}
	};
	public static final Object FALSE_VALUE = new Object(){
		public String toString(){
			return "FALSE";
		}
	};
	public static final MClass EMPTY_CLASS = new MClass();
	
	public static boolean isFalse(Object value){
		
		if(value==FALSE_VALUE)
			return true;

		if(value==ERROR_VALUE)
			return true;
		
		if(value==UNINITIATED_VALUE)
			return false;
		
		return false;
	}
	
	public static boolean isTrue(Object value){
		
		if(value==TRUE_VALUE)
			return true;

		if(value==ERROR_VALUE)
			return false;
		
		if(value==UNINITIATED_VALUE)
			return false;
		
		return true;
	}
}
